<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Magic 口碑营销平台</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<link rel="stylesheet" href="../css/magic.css">
<link rel="stylesheet" href="../css/work-magic.css">
</head>
<body>
<div id="wrap">
  <form id="validate">
    <h2 class="title">添加邮件模板</h2>
    <table>
      <tbody>
        <tr>
          <th><abbr title="必填项" class="require">*</abbr><label for="template-category">模板分类：</label></th>
          <td><select name="" id="template-category">
              <option value=""></option>
            </select></td>
        </tr>
        <tr>
          <th><abbr title="必填项" class="require">*</abbr><label for="template-name">模板名称：</label></th>
          <td><input type="text" name="" class="text s-size" id="template-name"></td>
        </tr>
        <tr>
          <th class="top"><abbr title="必填项" class="require">*</abbr><label for="template-desc">邮件描述：</label></th>
          <td><textarea name="" class="s-size" id="template-desc"></textarea></td>
        </tr>
        <tr>
          <th><abbr title="必填项" class="require">*</abbr>是否启用：</th>
          <td><label style="margin-right:20px;"><input type="radio" name="if_enable" value="" checked="checked"> 是</label> <label><input type="radio" name="if_enable" value=""> 否</label></td>
        </tr>
        <tr>
          <th><abbr title="必填项" class="require">*</abbr><label for="email-title">邮件标题：</label></th>
          <td><input type="text" name="" class="text l-size" id="email-title"> <button id="add-title-arguments" class="add-arguments">添加参数</button></td>
        </tr>
        <tr>
          <th class="top"><abbr title="必填项" class="require">*</abbr><label for="html-content">HTML模板内容：</label></th>
          <td><textarea name="" class="l-size" id="html-content"></textarea><br><button id="add-html-arguments" class="add-arguments">添加参数</button></td>
        </tr>
        <tr>
          <th class="top"><abbr title="必填项" class="require">*</abbr><label for="txt-content">TXT模板内容：</label></th>
          <td><textarea name="" class="l-size" id="txt-content"></textarea><br><button id="add-txt-arguments" class="add-arguments">添加参数</button></td>
        </tr>
        <tr>
          <th><label for="founder">创建人：</label></th>
          <td><input type="text" name="" class="text s-size" id="founder"></td>
        </tr>
        <tr>
          <th></th>
          <td>
          	<input type="submit" value="保存" class="btn">
            <button id="back">关闭</button></td>
        </tr>
      </tbody>
    </table>
  </form>
</div>
<script type="text/javascript" src="../js/jquery-1.4.2.js"></script>
<script src="../js/magic.js"></script>
<script>
magic.init("template_add",{
					 		"backUrl" : "template_admin.html",
							"argumentsListUrl" : "arguments_list.html"
					 });
</script>
</body>
</html>